﻿using Microsoft.Data.SqlClient;

namespace Himp.TaskScheduling.Hangfire
{
    /// <summary>
    /// 
    /// </summary>
    public class CodeConversion
    {
        /// <summary>
        /// 
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 原码
        /// </summary>
        public string SorcCode { get; set; }

        /// <summary>
        /// 目标码
        /// </summary>
        public string TargetCode { get; set; }

        /// <summary>
        /// 1 规批码转制样码
        /// 2 制样码准化验码
        /// 3 化验码转瓶底码
        /// </summary>
        public int ConversionType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime ConversionTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string OperName { get; set; }

        public CodeConversion(string sorcCode, int conversionType, string operName)
        {
            SorcCode = sorcCode;
            ConversionType = conversionType;
            ConversionTime = DateTime.Now;
            OperName = operName;
        }
    }
}
